
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>服务治理 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="OU.html" />
    
    
    <link rel="prev" href="GW.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../techstack/">
            
                <a href="../techstack/">
            
                    
                    技术栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    快速开始
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../helloworld/SYSTEM.html">
            
                <a href="../helloworld/SYSTEM.html">
            
                    
                    建立一个系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../helloworld/CORE.html">
            
                <a href="../helloworld/CORE.html">
            
                    
                    选定后台体系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html">
            
                    
                    创建一个实体
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#实体的定义">
            
                    
                    实体的定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#发布Entity">
            
                    
                    发布Entity
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.2.1" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#Service接口">
            
                    
                    Service接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.2" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#SQL数据库存储模式">
            
                    
                    SQL数据库存储模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.3" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#MongoDB存储模式">
            
                    
                    MongoDB存储模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.4" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#ServiceAPI存储模式">
            
                    
                    ServiceAPI存储模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2.5" data-path="../helloworld/ENTITY.html">
            
                <a href="../helloworld/ENTITY.html#筛选器">
            
                    
                    筛选器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../helloworld/API.html">
            
                <a href="../helloworld/API.html">
            
                    
                    发布一个服务接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1" data-path="../helloworld/API.html">
            
                <a href="../helloworld/API.html#服务接口的定义">
            
                    
                    服务接口的定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="../helloworld/API.html">
            
                <a href="../helloworld/API.html#发布Microserice">
            
                    
                    发布Microserice
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.2.1" data-path="../helloworld/API.html">
            
                <a href="../helloworld/API.html#REST接口">
            
                    
                    REST接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.2" data-path="../helloworld/API.html">
            
                <a href="../helloworld/API.html#DTO参数">
            
                    
                    DTO参数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../helloworld/APP.html">
            
                <a href="../helloworld/APP.html">
            
                    
                    创建一个应用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../helloworld/APP.html">
            
                <a href="../helloworld/APP.html#应用的定义">
            
                    
                    应用的定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.2" data-path="../helloworld/APP.html">
            
                <a href="../helloworld/APP.html#应用的发布">
            
                    
                    应用的发布
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.2.1" data-path="../helloworld/APP.html">
            
                <a href="../helloworld/APP.html#前端代码">
            
                    
                    JS前端代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.2.2" data-path="../helloworld/APP.html">
            
                <a href="../helloworld/APP.html#Gateway">
            
                    
                    Gateway
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    开发环境设置
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../dev/IDE.html">
            
                <a href="../dev/IDE.html">
            
                    
                    配置开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../dev/ENV.html">
            
                <a href="../dev/ENV.html">
            
                    
                    开发环境使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../dev/CFG.html">
            
                <a href="../dev/CFG.html">
            
                    
                    管理配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../dev/ARG.html">
            
                <a href="../dev/ARG.html">
            
                    
                    常规应用参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../dev/PORT.html">
            
                <a href="../dev/PORT.html">
            
                    
                    通用端口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../dev/FB.html">
            
                <a href="../dev/FB.html">
            
                    
                    前后端分离
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../dev/DOCKER.html">
            
                <a href="../dev/DOCKER.html">
            
                    
                    Docker和Docker Compose
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    微服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="./">
            
                <a href="./">
            
                    
                    概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="GW.html">
            
                <a href="GW.html">
            
                    
                    Gateway
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.3" data-path="BUS.html">
            
                <a href="BUS.html">
            
                    
                    服务治理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="OU.html">
            
                <a href="OU.html">
            
                    
                    运行时-ibzou用户管理微服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="WF.html">
            
                <a href="WF.html">
            
                    
                    运行时-ibzwf工作流微服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    选项
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../option/security.html">
            
                <a href="../option/security.html">
            
                    
                    安全
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../option/es.html">
            
                <a href="../option/es.html">
            
                    
                    Elasticsearch查询性能提升
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../option/cache.html">
            
                <a href="../option/cache.html">
            
                    
                    使用Redis的两级缓存
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../publish/companyserver.html">
            
                <a href="../publish/companyserver.html">
            
                    
                    使用Logback
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../publish/companyserver.html">
            
                <a href="../publish/companyserver.html">
            
                    
                    使用Druid
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../option/dynamicDS.html">
            
                <a href="../option/dynamicDS.html">
            
                    
                    dynamic datasource多数据源
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../publish/companyserver.html">
            
                <a href="../publish/companyserver.html">
            
                    
                    使用xxl-job任务调度
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../option/transactional.html">
            
                <a href="../option/transactional.html">
            
                    
                    使用seata分布式事务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../option/rocketmq.html">
            
                <a href="../option/rocketmq.html">
            
                    
                    使用RocketMQ
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../other/EX.html">
            
                <a href="../other/EX.html">
            
                    
                    扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../end/">
            
                <a href="../end/">
            
                    
                    结束
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >服务治理</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="nacos">Nacos</h3>
<p>Nacos &#x81F4;&#x529B;&#x4E8E;&#x5E2E;&#x52A9;&#x60A8;&#x53D1;&#x73B0;&#x3001;&#x914D;&#x7F6E;&#x548C;&#x7BA1;&#x7406;&#x5FAE;&#x670D;&#x52A1;&#x3002;Nacos &#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x7EC4;&#x7B80;&#x5355;&#x6613;&#x7528;&#x7684;&#x7279;&#x6027;&#x96C6;&#xFF0C;&#x5E2E;&#x52A9;&#x60A8;&#x5B9E;&#x73B0;&#x52A8;&#x6001;&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x3001;&#x670D;&#x52A1;&#x914D;&#x7F6E;&#x7BA1;&#x7406;&#x3001;&#x670D;&#x52A1;&#x53CA;&#x6D41;&#x91CF;&#x7BA1;&#x7406;&#x3002;</p>
<p>Nacos &#x5E2E;&#x52A9;&#x60A8;&#x66F4;&#x654F;&#x6377;&#x548C;&#x5BB9;&#x6613;&#x5730;&#x6784;&#x5EFA;&#x3001;&#x4EA4;&#x4ED8;&#x548C;&#x7BA1;&#x7406;&#x5FAE;&#x670D;&#x52A1;&#x5E73;&#x53F0;&#x3002; Nacos &#x662F;&#x6784;&#x5EFA;&#x4EE5;&#x201C;&#x670D;&#x52A1;&#x201D;&#x4E3A;&#x4E2D;&#x5FC3;&#x7684;&#x73B0;&#x4EE3;&#x5E94;&#x7528;&#x67B6;&#x6784;(&#x4F8B;&#x5982;&#x5FAE;&#x670D;&#x52A1;&#x8303;&#x5F0F;&#x3001;&#x4E91;&#x539F;&#x751F;&#x8303;&#x5F0F;)&#x7684;&#x670D;&#x52A1;&#x57FA;&#x7840;&#x8BBE;&#x65BD;&#x3002;</p>
<p> <img src="nacos.jpeg" alt="img"></p>
<h3 id="&#x670D;&#x52A1;&#x6CE8;&#x518C;&#x53D1;&#x73B0;-nacos-discovery-starter">&#x670D;&#x52A1;&#x6CE8;&#x518C;&#x53D1;&#x73B0;: Nacos Discovery Starter</h3>
<p>&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x662F;&#x5FAE;&#x670D;&#x52A1;&#x67B6;&#x6784;&#x4F53;&#x7CFB;&#x4E2D;&#x6700;&#x5173;&#x952E;&#x7684;&#x7EC4;&#x4EF6;&#x4E4B;&#x4E00;&#x3002;&#x5982;&#x679C;&#x5C1D;&#x8BD5;&#x7740;&#x7528;&#x624B;&#x52A8;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x7ED9;&#x6BCF;&#x4E00;&#x4E2A;&#x5BA2;&#x6237;&#x7AEF;&#x6765;&#x914D;&#x7F6E;&#x6240;&#x6709;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x8005;&#x7684;&#x670D;&#x52A1;&#x5217;&#x8868;&#x662F;&#x4E00;&#x4EF6;&#x975E;&#x5E38;&#x56F0;&#x96BE;&#x7684;&#x4E8B;&#xFF0C;&#x800C;&#x4E14;&#x4E5F;&#x4E0D;&#x5229;&#x4E8E; &#x670D;&#x52A1;&#x7684;&#x52A8;&#x6001;&#x6269;&#x7F29;&#x5BB9;&#x3002;Nacos Discovery Starter &#x53EF;&#x4EE5;&#x5E2E;&#x52A9;&#x60A8;&#x5C06;&#x670D;&#x52A1;&#x81EA;&#x52A8;&#x6CE8;&#x518C;&#x5230; Nacos &#x670D;&#x52A1;&#x7AEF;&#x5E76;&#x4E14;&#x80FD;&#x591F;&#x52A8;&#x6001;&#x611F;&#x77E5;&#x548C;&#x5237;&#x65B0;&#x67D0;&#x4E2A;&#x670D;&#x52A1;&#x5B9E;&#x4F8B;&#x7684;&#x670D;&#x52A1;&#x5217;&#x8868;&#x3002;&#x9664;&#x6B64;&#x4E4B;&#x5916;&#xFF0C;Nacos Discovery Starter &#x4E5F;&#x5C06;&#x670D;&#x52A1;&#x5B9E;&#x4F8B;&#x81EA;&#x8EAB;&#x7684;&#x4E00;&#x4E9B;&#x5143;&#x6570;&#x636E;&#x4FE1;&#x606F;-&#x4F8B;&#x5982; host&#xFF0C;port,&#x5065;&#x5EB7;&#x68C0;&#x67E5;URL&#xFF0C;&#x4E3B;&#x9875;&#x7B49;-&#x6CE8;&#x518C;&#x5230; Nacos &#x3002;Nacos &#x7684;&#x83B7;&#x53D6;&#x548C;&#x542F;&#x52A8;&#x65B9;&#x5F0F;&#x53EF;&#x4EE5;&#x53C2;&#x8003; Nacos &#x5B98;&#x7F51;&#x3002;</p>
<ul>
<li><del>&#x4ECB;&#x7ECD;ibizlab&#x5BF9;&#x670D;&#x52A1;&#x53D1;&#x73B0;&#x63A5;&#x5165;&#x7684;&#x4EE3;&#x7801;&#x63CF;&#x8FF0;&#x548C;&#x622A;&#x56FE;</del></li>
</ul>
<h3 id="&#x914D;&#x7F6E;&#x7BA1;&#x7406;-nacos-config">&#x914D;&#x7F6E;&#x7BA1;&#x7406;: Nacos Config</h3>
<p>Nacos &#x63D0;&#x4F9B;&#x7528;&#x4E8E;&#x5B58;&#x50A8;&#x914D;&#x7F6E;&#x548C;&#x5176;&#x4ED6;&#x5143;&#x6570;&#x636E;&#x7684; key/value &#x5B58;&#x50A8;&#xFF0C;&#x4E3A;&#x5206;&#x5E03;&#x5F0F;&#x7CFB;&#x7EDF;&#x4E2D;&#x7684;&#x5916;&#x90E8;&#x5316;&#x914D;&#x7F6E;&#x63D0;&#x4F9B;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x548C;&#x5BA2;&#x6237;&#x7AEF;&#x652F;&#x6301;&#x3002;&#x4F7F;&#x7528; Spring Cloud Alibaba Nacos Config&#xFF0C;&#x60A8;&#x53EF;&#x4EE5;&#x5728; Nacos Server &#x96C6;&#x4E2D;&#x7BA1;&#x7406;&#x4F60; Spring Cloud &#x5E94;&#x7528;&#x7684;&#x5916;&#x90E8;&#x5C5E;&#x6027;&#x914D;&#x7F6E;&#x3002;</p>
<ul>
<li><del>&#x4ECB;&#x7ECD;ibizlab&#x5BF9;&#x914D;&#x7F6E;&#x7BA1;&#x7406;&#xFF08;</del><del>nacosValue</del><del>&#xFF09;&#x7684;&#x4EE3;&#x7801;&#x63CF;&#x8FF0;&#x548C;&#x622A;&#x56FE;</del></li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="GW.html" class="navigation navigation-prev " aria-label="Previous page: Gateway">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="OU.html" class="navigation navigation-next " aria-label="Next page: 运行时-ibzou用户管理微服务">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"服务治理","level":"1.5.3","depth":2,"next":{"title":"运行时-ibzou用户管理微服务","level":"1.5.4","depth":2,"path":"msa/OU.md","ref":"msa/OU.md","articles":[]},"previous":{"title":"Gateway","level":"1.5.2","depth":2,"path":"msa/GW.md","ref":"msa/GW.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"msa/BUS.md","mtime":"2020-08-04T10:14:12.566Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-10-08T05:59:13.818Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

